<%var styleBlock={%>
<style>
</style>
<%};%>

<% var mainBlock={%>
		

	<header id="fh5co-header" class="fh5co-cover fh5co-cover-sm" role="banner" style="background-image:url('${ctx}/assets/home/images/img_bg_1.jpg');" data-stellar-background-ratio="0.5">
		<div class="overlay"></div>
		<div class="container">
			<div class="row">
				<div class="col-md-7 text-left">
					<div class="display-t">
						<div class="display-tc animate-box" data-animate-effect="fadeInUp">
							<h1 class="mb30">输入</h1>
						</div>
					</div>
				</div>
			</div>
		</div>
	</header>

	

	<div id="fh5co-contact">
		<div class="container">
			<div class="row">
				<div class="col-md-2 col-md-push-1 animate-box">
					

				</div>
				<div class="col-md-8 animate-box">
					<h3>输入</h3>
					<form action="${ctx}/article/submit" method="post">
						<div class="row form-group">
							<div class="col-md-12">
								<label for="subject">标题</label>
								<input type="text" name="subject" id="subject" class="form-control" placeholder="请输入标题">
							</div>
						</div>

						<div class="row form-group">
							<div class="col-md-12">
								<label for="content">内容</label>
								<textarea name="content" id="content" cols="30" rows="70" class="form-control" placeholder="请输入内容"></textarea>
							</div>
						</div>
						<div class="form-group">
							<input type="submit" value="发表" class="btn btn-lg btn-primary">
						</div>
					</form>
				</div>

                <div class="col-md-2 col-md-push-1 animate-box">


                </div>
			</div>
			
		</div>
	</div>

    <%};%>

    <% var scriptBlock={%>
    <script>
        $(function(){
            $("#submit").click(function(){
                var message=$("#fname").val()+","+$("#lname").val()+","+$("#email").val()+","+$("#subject").val()+","+$("#message").val();
                $.ajax({
                    url:'${ctx}/home/bug',
                    data:{txt:message},
                    success:function(data){
                        alert("ok")
                    }
                })

            })
        })
    </script>
    <%};%>

    <%
    var layoutParas = {"mainBlock":mainBlock,"styleBlock":styleBlock,"scriptBlock":scriptBlock};
    includeFileTemplate('/layout/home/template.htm',layoutParas){};
    %>

